package com.ywl.common.constants;

public class PurchaseConstant {

    public enum PurchaseStatus {
        NEW(0, "新建"), ASSIGNED(1, "已分配"),
        RECEIVED(2, "已领取"), FINISHED(3, "已完成"),
        HAS_ERROR(4, "有异常");

        private Integer code;
        private String msg;

        PurchaseStatus(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum PurchaseDetailConstant {

        NEW(0, "新建"), ASSIGNED(1, "已分配"),
        BUYING(2, "正在采购"), FINISHED(3, "已完成"),
        FAILURE(4, "采购失败");

        private Integer code;
        private String msg;

        PurchaseDetailConstant(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
